package com.intelligent.ispc.core.entity;

import com.intelligent.ispc.common.persistence.BaseEntity;
import com.intelligent.ispc.utils.ExportFileStatus;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by Peter on 2016/3/14.
 */
@Entity
@Table(name = "t_exportfile")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ExportFile extends BaseEntity {

    private String projectName;
    private String url;

    @Enumerated(value = EnumType.STRING)
    private ExportFileStatus status;

    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;

    private String dataType;

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public ExportFileStatus getStatus() {
        return status;
    }

    public void setStatus(ExportFileStatus status) {
        this.status = status;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }
}
